package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.OverallAppraisalMapper;
import com.qingke.pojo.OverallAppraisal;
import com.qingke.service.OverallAppraisalService;
@Service("overallAppraisalService")
public class OverallAppraisalServiceImpl implements OverallAppraisalService {
	@Resource
	private OverallAppraisalMapper oaDao;

	public int saveOverallAppraisal(OverallAppraisal record) {
		return oaDao.insertSelective(record);
	}

	public int softDelete(int id) {
		return oaDao.softDelete(id);
	}

	public OverallAppraisal getOverallAppraisalById(int id) {
		return oaDao.selectByPrimaryKey(id);
	}

	public List<OverallAppraisal> listOverallAppraisalByStudentId(int studentId) {
		return oaDao.listOverallAppraisalByStudentId(studentId);
	}

	public int updateOverallAppraisal(OverallAppraisal record) {
		return oaDao.updateByPrimaryKeySelective(record);
	}

}
